package com.yl.request.common.glaencrypt.enums;

public enum NetworkType {
    INTRANET("政务内网", "0"),
    EXTRANET("政务外网", "1"),
    INTERNET("互联网", "2");

    private final String name;
    private final String type;

    NetworkType(String name, String type) {
        this.name = name;
        this.type = type;
    }

    public String Name() {
        return this.name;
    }

    public String Type() {
        return this.type;
    }

    public static NetworkType from(String type) {
        NetworkType networkType = null;
        NetworkType[] var2 = values();
        int var3 = var2.length;

        for(int var4 = 0; var4 < var3; ++var4) {
            NetworkType e = var2[var4];
            if (e.Type().equals(type)) {
                networkType = e;
            }
        }

        if (networkType == null) {
            throw new IllegalArgumentException("not support network type " + type);
        } else {
            return networkType;
        }
    }
}
